<template>
  <div>

    <!-- table -->
    <div style="background: #fff;">
      <!-- <div class="  e-p-20  e-flex e-row-between">
        <div class="e-flex">
          <div style="width: 300px;margin-right: 20px;">
            <el-input v-model="initial.params.keyword" placeholder="搜索客户手机号/姓名"></el-input>
          </div>
          <el-button type="primary" @click="keyword">搜索</el-button>
        </div>
      </div> -->

      <el-table :data="list.data" stripe style="width: 100%" height="700">
        <el-table-column prop="id" label="序号" width="200"> 
        </el-table-column>
        <el-table-column prop="createTime" label="时间">
        </el-table-column>


        <el-table-column prop="userName" label="操作员">
        </el-table-column>
        <el-table-column prop="ip" label="ip地址 ">
        </el-table-column>
        <el-table-column prop="query" label="跟进状态">

        </el-table-column>

      </el-table>

      <div style="display: flex;justify-content: flex-end;padding: 20px 0;">
        <basePagination :size="list.perPage" :page="list.currentPage" :total="list.total" @SizeChange='SizeChange'
          @CurrentChange='CurrentChange' />
      </div>
    </div>
  </div>
</template>

<script>
  import loader from '@/components/base/basePagination/controls.js';
  import {
    Message
  } from 'element-ui';
  export default {
    mixins: [loader],
    data() {
      return {
        initial: {
          geturl: "/user/log",
          params: {

          }
        },
        list: {},
        loading: true,
        allCheck: false

      }
    },
    created() {
      this.jiazai()
    },

    methods: {
      keyword() {
        this.jiazai()
      },
      jiazai() {
        this.getData(this.initial.params).then(res => {
          let data = res.data;
          this.list = res;
          this.loading = false;
        }).catch(err => {

        })
      }
    }
  }
</script>

<style scoped>
  .block {
    background: #fff;
    margin-right: 30px;
    border-radius: 2px;
    font-size: 9px;
    width: 100px;
    text-align: center;
    text-align: center;
    padding: 10px;
    color: #333;

  }

  .change {
    background: #0076D3;
    color: #fff;
    transition: all 0.3s;
  }

  .box {
    margin-bottom: 10px;
  }
</style>
